package com.huazhen.itrip.biz.service.productstore;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripProductStore;
import com.huazhen.itrip.dao.productstore.ItripProductStoreMapper;
@Service("itripProductStoreService")
public class ItripProductStoreServiceImpl implements ItripProductStoreService {
	
	@Resource
	private ItripProductStoreMapper itripProductStoreMapper;
	
	@Override
	public ItripProductStore getItripProductStoreById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripProductStoreMapper.getItripProductStoreById(id);
	}

	@Override
	public List<ItripProductStore> getItripProductStoreListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripProductStoreMapper.getItripProductStoreListByMap(param);
	}

	@Override
	public Integer getItripProductStoreCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripProductStoreMapper.getItripProductStoreCountByMap(param);
	}

	@Override
	public Integer insertItripProductStore(ItripProductStore itripProductStore) throws Exception {
		
		return itripProductStoreMapper.insertItripProductStore(itripProductStore);
	}

	@Override
	public Integer updateItripProductStore(ItripProductStore itripProductStore) throws Exception {
		// TODO Auto-generated method stub
		return itripProductStoreMapper.updateItripProductStore(itripProductStore);
	}

	@Override
	public Integer deleteItripProductStoreById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripProductStoreMapper.deleteItripProductStoreById(id);
	}

}
